package newXgame.hall.object
{
	import newXgame.hall.object.background.GameTalkBackground;
	import newXgame.utils.ExScrollUtils;
	
	import org.dstart.draw.csuper.CSprite;

	public class GameTalkObject extends CSprite
	{
		private var bgSprite:GameTalkBackground;	//	聊天背景
		private var talkScroll:ExScrollUtils;		//	滑动条扩展
		private var talkSprite:CSprite;				//	聊天文字显示区
		
		public function GameTalkObject()
		{
			bgSprite = new GameTalkBackground();
			talkScroll = new ExScrollUtils();
			
			_root.addChild(bgSprite);
			_root.addChild(talkScroll);
		}
		
		public function ChangeSize(ww:Number, hh:Number):void
		{
			bgSprite.ChangeSize(ww, hh);
			talkScroll.x = ww - this.talkScroll.width - 2;
			talkScroll.y = 10;
			talkScroll.ChangeHeight(hh - 22);
		}
	}
}